package com.innjia.base.exception;

import com.innjia.base.utils.Result;
import org.apache.shiro.authc.AuthenticationException;

/**
 * 登录异常
 * <br>
 * 2017-11-20
 *
 * @author zhouxianglh@gmail.com
 */
public class LoginException extends AuthenticationException {
    private Result result;

    public LoginException(String msg) {
        super(msg);
        result = Result.error(msg);
    }

    public Result getResult() {
        return result;
    }

    public void setResult(Result result) {
        this.result = result;
    }
}
